package com.example.seckill_order.common.config.token;



/**
 * @FileName: SysUserContextHolder
 * @Author: code-fusheng
 * @Date: 2021/12/11 4:08 下午
 * @Version: 1.0
 * @Description:
 */

public class SysUserContextHolder {

//    private static final ThreadLocal<SysUser> THREAD_LOCAL = new ThreadLocal<>();
//
//    public static SysUser get() {
//        return THREAD_LOCAL.get();
//    }
//
//    public static void set(SysUser user) {
//        THREAD_LOCAL.set(user);
//    }
//
//    public static void clear() {
//        THREAD_LOCAL.remove();
//    }
//
//    public static String getId() {
//        SysUser user = get();
//        Assert.notNull(user, "当前用户未登录");
//        return user.getUserId();
//    }

}
